package com.xlh.dokka.svc.core.client;

import lombok.Data;

/**
 * @author cheer
 */
@Data
public class ContainerUpdateRequest {

    public ContainerUpdateRequest(Double cpu, Long memory) {
        if (cpu != null) {
            this.CpuQuota = (long) (this.CpuPeriod * cpu);
        }
        if (memory != null)
            this.Memory = memory;
    }

    private Long CpuPeriod = 100000L;

    private Long CpuQuota;

    private Long Memory;

    private Long MemorySwap = -1L;

}
